{include file="/shopro/common/script" /}

<div id="addEdit" class="customer-service-form" v-cloak>
  <el-container class="panel-block">
    <el-main>
      <el-scrollbar height="100%">
        <el-form :model="form.model" :rules="form.rules" ref="formRef" label-width="120px">
          <el-form-item label="版本数值" prop="version_num">
            <el-input class="sa-w-360" v-model="form.model.version_num" placeholder="请输入版本数值"></el-input>
          </el-form-item>
          <el-form-item label="版本号" prop="version">
            <el-input class="sa-w-360" v-model="form.model.version" placeholder="请输入版本号"></el-input>
          </el-form-item>
          <el-form-item label="秘钥" prop="version">
            <el-input class="sa-w-360" v-model="form.model.secret_key" placeholder="请输入秘钥"></el-input>
          </el-form-item>
          <el-form-item label="安装包" prop="url">
            <el-input class="local-ajax-upload-wrap sa-w-360"
                      v-model="form.model.url"
                      placeholder="请上传安装包">
              <template #append>

                <label style="cursor: pointer;font-weight: normal;margin-bottom: 0;display: inline-block;max-width: 100%" for="alipay_root_cert_path">上传</label>
                <input class="local-ajax-upload" style="display: none"  id="alipay_root_cert_path" type="file"
                       @change="onAjaxUpload('alipay_root_cert_path')">
              </template>
            </el-input>
          </el-form-item>
          <el-form-item label="版本描述">
            <el-input class="sa-w-360" v-model="form.model.desc" placeholder="请输入版本描述" ></el-input>
          </el-form-item>
        </el-form>
      </el-scrollbar>
    </el-main>
    <el-footer class="sa-footer--submit sa-flex sa-row-right">
      <el-button type="primary" @click="onConfirm">确定</el-button>
    </el-footer>
  </el-container>
</div>